package com.nhn.productmyself.lib.common;

import android.util.Log;

public class LogManager {

	private static boolean mIsEnabled = true;
	
	public static void error(String tag, String message) {
		if (mIsEnabled) {
			Log.e(tag, message);
		}
	}
	
	public static void error(String tag, String message, Throwable throwable) {
		if (mIsEnabled) {
			Log.e(tag, message, throwable);
		}
	}
	
	public static void debug(String tag, String message) {
		if (mIsEnabled) {
			Log.d(tag, message);
		}
	}
	
	public static void debug(String tag, String message, Throwable throwable) {
		if (mIsEnabled) {
			Log.d(tag, message, throwable);
		}
	}
	
	public static void infor(String tag, String message) {
		if (mIsEnabled) {
			Log.i(tag, message);
		}
	}
	
	public static void infor(String tag, String message, Throwable throwable) {
		if (mIsEnabled) {
			Log.i(tag, message, throwable);
		}
	}
	
	
	public static void warning(String tag, String message) {
		if (mIsEnabled) {
			Log.w(tag, message);
		}
	}
	
	public static void warning(String tag, String message, Throwable throwable) {
		if (mIsEnabled) {
			Log.w(tag, message, throwable);
		}
	}
}
